package com.jpx.jxcbiz.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jpx.common.vo.CarListDto;
import com.jpx.jxcbiz.entity.TSaleList;
import com.jpx.jxcbiz.mapper.TSaleListMapper;
import com.jpx.jxcbiz.service.ITSaleListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-24
 */
@Service
public class TSaleListServiceImpl extends ServiceImpl<TSaleListMapper, TSaleList> implements ITSaleListService{

    @Resource
    TSaleListMapper tSaleListMapper;

    @Override
    public List<CarListDto> getCarList(CarListDto carListDto) {
        return tSaleListMapper.getCarList(carListDto);
    }


    @Override
    public List<TSaleList> getSaleListById(int id) {
        return tSaleListMapper.getSaleListById(id);
    }

    @Override
    public boolean deleteSaleListById(int id) {
       return tSaleListMapper.deleteSaleListById(id);
    }

    @Override
    public boolean deleteSaleListGoodsById(int saleListId) {
        return tSaleListMapper.deleteSaleListGoodsById(saleListId);
    }

    @Override
    public void save(TSaleList tSaleList) {
        tSaleListMapper.save(tSaleList);
    }

}
